package com.example.tooltip_view;

import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
import ohos.app.Context;
import org.junit.Assert;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class ExampleOhosTest {
    @Test
    public void testBundleName() {
        final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
        assertEquals("com.example.tooltip_view", actualBundleName);
    }

    @Test
    public void onStart() {
        Context context = AbilityDelegatorRegistry.getAbilityDelegator().getAppContext();
        Assert.assertNotNull(context);
    }
}